﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NugetPublishWizard
{
    public static class Helper
    {
        public static string ListToString(List<string> list, char seperator)
        {
            StringBuilder result = new StringBuilder();
            foreach (string s in list)
            {
                result.Append(s);
                result.Append(seperator.ToString());
            }
            if (list.Count == 0)
                return string.Empty;
            return result.ToString().Substring(0, result.Length - 1);
        }
    }
}
